package com.xx.bysj.utils;

import java.util.HashMap;

public class MenuResultUtils extends HashMap<String, Object> {
    /**
     * 状态码
     */
    public static final String CODE_TAG = "code";

    /**
     * 返回内容
     */
    public static final String MSG_TAG = "msg";

    /**
     * 数据对象
     */
    public static final String DATA_TAG = "data";

    private static final String COUNT_TAG = "count";

    public MenuResultUtils(){

    }

    public MenuResultUtils(Integer count, Object data) {
        super.put(COUNT_TAG, count);
        super.put(DATA_TAG, data);
        super.put(CODE_TAG, 0);
        super.put(MSG_TAG, "");
    }

}
